var serverUrl = "http://www.test.com";
var apiUrl = serverUrl + "/api";
var staticUrl = serverUrl + "/static";

function isEmpty(value) {
    if (value == null || value == undefined || (value + "").trim().length < 1) {
        return true;
    }
    return false;
};

function sendGet(url) {
    let result;
    $.ajax({
        url: apiUrl + url, //接口
        type: "get", //GET或POST
        async: false,
        success: function (obj) {
            result = obj;
        },
    });
    console.log("调用后台接口：" + url + "    返回信息：" + result);
    return result;
}